home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 11
/
PC World Interactive 11.iso
/
share
/
multimed
/
MAINACT
/
DATA1.CAB
/
Script_Files
/
renframs.rex
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-05-04
|
2KB
|
33 lines
/**************************************************************
* *
* MainActor Rexx Script *
* *
* Renames a frame list created by MainActor to a specific *
* file name format. *
* *
* Last modified: 09/06/97, Written by: Markus Moenig *
* *
**************************************************************/
SetInfoText("Renaming frames ...")
sourcebase="c:\tmp\test" /* Source is of the format: "c:\tmp\testXXXX.tga */
destbase="c:\test"
format="tga" /* This example renames to "c:\test.XXX */
numberofframes=40 /* Convert 40 frames */
/* It should be fairly easy to change this to */
/* any special format */
i=1
DO WHILE i <= numberofframes
oldname=sourcebase || Right( "0000" || i, 4) || "." || format
newname=destbase || "." || Right( "000" || i, 3)
/* If you need more than three digits, use */
/* for example Right( "0000" || i, 4) which */
/* converts to c:\test.XXXX */
say "Renaming:" oldname "to" newname
DOSRENAME( oldname, newname)
i=i+1
END